<?php
require_once('ForumClass.php');  
$Forum = new Forum();
if(!isset($_POST['submit']))
{
    header("../page/HOME_forum.php");    
}
else {
		
        $nama_event = $Forum->EscapeString($_POST['nama_event']);
		$deskripsi_event = $Forum->EscapeString($_POST['deskripsi_event']);
		$tanggal_event = $Forum->GetDate();
		$nama = $_SESSION['username'];
		
    $Forum->AddEvent($nama_event,$deskripsi_event,$tanggal_event,$nama);
}

$Forum->Disconnect();
 
?>
